//
//  Const.swift
//  u17Comic
//
//  Created by hujian on 2019/7/9.
//  Copyright © 2019 hujian. All rights reserved.
//

import Foundation
import UIKit
import Kingfisher
import HandyJSON
import SnapKit
//import SkeletonView


//MRAK: 应用默认颜色
extension UIColor {
    class var background: UIColor {
        return UIColor(r: 242, g: 242, b: 242)
//        return UIColor(red: 242, green: 242, blue: 242, alpha: 1)
    }
    
    class var theme: UIColor {
        return UIColor(r: 29, g: 221, b: 43)
//        return UIColor(red: 29, green: 221, blue: 43, alpha: 1)
    }
    
}

let ScreenWidth = UIScreen.main.bounds.size.width
let ScreenHeight = UIScreen.main.bounds.size.height


var isIphoneX: Bool {
    return UI_USER_INTERFACE_IDIOM() == .phone
        && (max(ScreenHeight, ScreenWidth) == 812
            || max(ScreenHeight, ScreenWidth) == 896)
}

